class GameRefactor < ActiveRecord::Migration
  def self.up
  	drop_table :games_teams

  	add_column :games, :home_team, :integer
  	add_column :games, :visiting_team, :integer
  end

  def self.down
  	create_table :games_teams, :id => false do |table|
  		table.integer :game_id
  		table.integer :team_id
  	end

  	remove_column :games, :home_team
  	remove_column :games, :visiting_team

  end
end